<template>
  <div class="header">
    <mt-header :title="title" fixed>
      <router-link :to="path" slot="left">
        <mt-button icon="back">返回</mt-button>
      </router-link>
      <mt-button icon="more" slot="right" @click.native="more"></mt-button>

    </mt-header>
  </div>
</template>
<script>
export default {
  name: "headerCom",
  data() {
    return {

    };
  },
  props: ['title', 'path', 'type'],
  methods: {
    more() {
      switch (this.type) {
        case 'detailArt':
          console.log('文章详情');
          break;
        //...
      }
    },


  },
};
</script>
